Skip to content

[docs-agent] Fix weekly link check broken links#1399

Merged
SahilAujla merged 1 commit into
mainfrom
docs/fix-weekly-link-check-broken-links
Jun 22, 2026
Merged

[docs-agent] Fix weekly link check broken links#1399
SahilAujla merged 1 commit into
mainfrom
docs/fix-weekly-link-check-broken-links

Conversation

@alchemy-bot

Copy link
Copy Markdown
Contributor

Summary

Fixes the two broken links flagged by the weekly Link Check run.

1. content/tutorials/alchemy-university/smart-contract-basics/how-to-unit-test-a-smart-contract.mdx

Updated https://mochajs.org/#hookshttps://mochajs.org/features/hooks/. Mocha redesigned their docs site (now built on Starlight/Astro) and the #hooks anchor on the home page no longer exists. The Hooks documentation lives at /features/hooks/ in the new sidebar structure. Verified the new URL resolves to the full Hooks reference.

2. content/changelog/2026-02-19.md

Added a narrow exclude pattern to lychee.toml for github.com/<owner>/<repo>/pkgs/container/... URLs. The flagged link (github.com/sentioxyz/reth-bsc/pkgs/container/reth-bsc/624488464?tag=v0.0.7-beta) is a valid GHCR package version page that loads fine in a browser; GitHub's pkgs gateway intermittently returns 502 to lychee. Since this is a historical changelog entry pointing to a specific release artifact (we shouldn't rewrite it to a different version), and the failure is a third-party gateway flake, excluding the URL pattern matches the existing playbook for sibling intermittent-third-party domains (geth.ethereum.org, portal.zksync.io, etc.). Only one link in content/ matches this pattern today, but the pattern is shaped so future similar GHCR links don't trip the check either.

Linear

DOCS-123 — Fix weekly link check broken links: mochajs.org/#hooks and GHCR pkg URL

Slack thread

https://alchemyinc.slack.com/archives/C0852FMMUMR/p1782153104141979

- mochajs.org/#hooks: anchor no longer exists after Mocha's docs site redesign; update to https://mochajs.org/features/hooks/

- github.com/.../pkgs/container/...: GHCR package version pages intermittently 502 to lychee while loading fine in browsers; add narrow exclude pattern

Refs DOCS-123
@alchemy-bot alchemy-bot requested a review from a team as a code owner June 22, 2026 18:35
@github-actions

github-actions Bot commented Jun 22, 2026

Copy link
Copy Markdown

🔗 Preview Mode

Name Status Preview Updated (UTC)
Alchemy Docs ✅ Ready 🔗 Visit Preview Jun 22, 2026, 6:35 PM

@SahilAujla SahilAujla merged commit 2f3385a into main Jun 22, 2026
9 checks passed
@SahilAujla SahilAujla deleted the docs/fix-weekly-link-check-broken-links branch June 22, 2026 18:43
SahilAujla pushed a commit that referenced this pull request Jun 22, 2026
Per @dslovinsky's feedback: the github.com /pkgs/container/ 502 flagged by the weekly link check is a transient gateway error, not a recurring pattern worth excluding. Ignore it for now; if it recurs persistently we can revisit.

Refs DOCS-123

Requested-by: @dslovinsky
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants